home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 37 lines | [TEXT/GEOL] |
- Item 2855763 22-Dec-89 14:09
-
- From: KNEPPER Knepper, Christopher
-
- To: AM0086 Charles Schwab, Margaret Taylor,AM
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: Com Init Help Needed
-
- Michael,
-
- I would recommend the following steps (and in the following order!!!) for
- initializing the serial driver:
-
- 1. open the output and input drivers (eg RAMSDOpen(sPortA))
- 3. call SerReset on the output driver (eg ref num = -7) with the baud, stop
- bits, parity, data bits
- 4. call SerHShake on the output driver (eg ref num = -7) with fXon =1, fCTS =1,
- fInx =1, xOn = Chr(17), xOff =Chr(19), errs =0, evts =0
- 5. call SerReset on the input driver (eg ref num = -6) with the baud,stop
- bits,parity,data bits
- 6. call SerHShake on the input driver (eg ref num = -6) with fXon =1, fCTS =1,
- fInx =1, xOn = Chr(17), xOff =Chr(19)
- 7. call SerSetBuf on the input driver (eg ref num = -6) with a valid pointer
- allocated with NewPtr (I suggest 2K minimum)
-
- Of course, check for errors at each step and only proceed if err = NoErr.
-
- For compatibility with older systems, you should follow the note in Inside Mac
- IV-225 re including the 'SERD' resource that is supplied with MPW (in
- Libraries:Libraries:) with your application and using RAMSDOpen instead of
- OpenDriver.
-
- -Chris
-
-